import * as circuitComponents from "./circuitComponents.js";

// 家庭电路数据
const familyCircuits = {
  1: {
    name: "单控开关控制电路",
    sampleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/0435dff7e231d01a484628d3039898e9",
    principleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/7d0032385b3f980136ed1e2b9fb59f9a",
    data: [
      circuitComponents.power1(125, 10),
      circuitComponents.sw1(70, 180),
      circuitComponents.bulb(220, 280)
    ]
  },
  2: {
    name: "双控开关控制电路",
    sampleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/9e421fc91eeebfd14db390e01344372b",
    principleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/ae960a6833deea2602f1a6cc2f3b016e",
    data: [
      circuitComponents.power1(125, 10),
      circuitComponents.sw2(70, 200),
      circuitComponents.sw2(250, 200),
      circuitComponents.bulb(150, 380)
    ]
  },
  3: {
    name: "两个双控双开控制电路",
    sampleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/3d4377ad5614334915565142a0945908",
    principleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/bd6f12a93b93887355a997ac52471cfc",
    data: [
      circuitComponents.power1(125, 10),
      circuitComponents.sw3(70, 200),
      circuitComponents.sw3(250, 200),
      circuitComponents.bulb(70, 380),
      circuitComponents.bulb(250, 380)
    ]
  },
  6: {
    name: "两个一开五孔双控控制电路",
    sampleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/3f19ce6a722d73225d516da3c8a8dc78",
    principleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/344c394cca285ef82272be1aa6e6df86",
    data: [
      circuitComponents.power1(125, 10),
      circuitComponents.asw2(70, 140),
      circuitComponents.sw4(50, 300),
      circuitComponents.sw4(240, 300),
      circuitComponents.bulb(150, 420)
    ]
  },
  7: {
    name: "单相电能表安装电路",
    sampleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/2d3c7b8c37269b06713230944f81cdbd",
    principleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/bec3300147266f2be23dbca415ea854e",
    data: [
      circuitComponents.power1(125, 10),
      circuitComponents.asw2(70, 140),
      circuitComponents.meter(150, 140),
      circuitComponents.asw2(260, 140),
      circuitComponents.sw2(90, 350),
      circuitComponents.bulb(230, 350)
    ]
  }
};

// 工业电路数据
const industryCircuits = {
  16: {
    name: "电动机单向运转控制",
    sampleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/04ef85ce77fd1b54a7c44f31bc71afc1",
    principleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/4e55b964b2aae0f2bbb334d283d12e45",
    data: [
      circuitComponents.power2(120, 10),
      circuitComponents.asw3(123, 100),
      circuitComponents.fuse3(123, 260),
      circuitComponents.motor(62, 440)
    ]
  },
  17: {
    name: "点动控制电气回路",
    sampleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/a25910e3aae7aa20d8662b439acf2261",
    principleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/e839c455af057c376432f2ee50360f3a",
    data: [
      circuitComponents.power3(75, 10),
      circuitComponents.asw3(86, 100),
      circuitComponents.asw2(220, 100),
      circuitComponents.fuse3(86, 240),
      circuitComponents.compoundButton(220, 240),
      circuitComponents.ACContactorOpen(86, 380),
      circuitComponents.motor(30, 550)
    ]
  },
  18: {
    name: "点动控制电气回路带热继电器",
    sampleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/54d5a994c19a2ad965ab206f13166edf",
    principleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/d6cddac1716ed6a24ec5490ff8af54b6",
    data: [
      circuitComponents.power3(75, 10),
      circuitComponents.asw3(86, 100),
      circuitComponents.asw2(220, 100),
      circuitComponents.fuse3(86, 240),
      circuitComponents.compoundButton(220, 343),
      circuitComponents.ACContactorOpen(86, 380),
      circuitComponents.thermalRelay(86, 550),
      circuitComponents.motor(30, 690)
    ]
  },
  19: {
    name: "点动控制电机正反转接触器互锁",
    sampleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/bc8fc237d09f4dbffde012c2d29b3fc5",
    principleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/b64092cacc7edd9b31a4e7e751be1e20",
    data: [
      circuitComponents.power3(75, 10),
      circuitComponents.asw3(40, 100),
      circuitComponents.asw2(170, 100),
      circuitComponents.fuse3(40, 240),
      circuitComponents.compoundButton(250, 200, { text: "正转启动" }),
      circuitComponents.compoundButton(250, 320, { text: "反转启动" }),
      circuitComponents.ACContactorOpen(40, 420),
      circuitComponents.ACContactorOpen(170, 420),
      circuitComponents.motor(30, 600)
    ]
  },
  20: {
    name: "三相异步电动机自锁控制电气回路",
    sampleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/4b55da529a7c85079181b0fa58ebee83",
    principleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/9b941ad578a59fd3b88791d65220cd12",
    data: [
      circuitComponents.power3(75, 10),
      circuitComponents.asw3(86, 100),
      circuitComponents.asw2(205, 100),
      circuitComponents.fuse3(86, 240),
      circuitComponents.compoundButtonRed(220, 250),
      circuitComponents.compoundButton(220, 370),
      circuitComponents.ACContactorOpen(86, 380),
      circuitComponents.asyncMotor(30, 550)
    ]
  },
  21: {
    name: "三相异步电动机正反转自锁电气回路",
    sampleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/a0c27ea70835800df822671a98f489ea",
    principleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/a8e77a2b12f685b72a649b8d17c843a8",
    data: [
      circuitComponents.power3(75, 10),
      circuitComponents.asw3(40, 100),
      circuitComponents.asw2(160, 100),
      circuitComponents.fuse3(40, 260),
      circuitComponents.compoundButtonRed(250, 120),
      circuitComponents.compoundButton(250, 210, { text: "正转启动" }),
      circuitComponents.compoundButton(250, 310, { text: "反转启动" }),
      circuitComponents.ACContactor(40, 410),
      circuitComponents.ACContactor(150, 410),
      circuitComponents.asyncMotor(30, 600)
    ]
  },
}
// 实操科目数据
const practical = {
    22: {
        name: "K2-1电动机单向连续带点动运转接线",
        sampleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/5b59eb42d04801fc13ae4b69302d5d70",
        principleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/79d6eef5221561c8f3a5cf623c7c2ea5",
        data: [
          circuitComponents.power4(75, 10),
          circuitComponents.asw3(86, 100),
          circuitComponents.asw2(220, 100),
          circuitComponents.compoundButtonRed(250, 260),
          circuitComponents.compoundButton(250, 360),
          circuitComponents.compoundButton(250, 460),
          circuitComponents.ACContactorOpen2(86, 250),
          circuitComponents.thermalRelay(86, 450),
          circuitComponents.motor(30, 620)
        ]
      },
      23: {
        name: "K2-2三相异步电动机正反运转线路接线",
        sampleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/ad2a7efc9c42dc2ae06cadadd16e736d",
        principleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/f0ee849b1f23d749779dcb19cce12782",
        data: [
          circuitComponents.power4(30, 10),
          circuitComponents.asw3(40, 100),
          circuitComponents.asw2(170, 100),
          circuitComponents.ACContactor2(40, 250),
          circuitComponents.ACContactor2(150, 250),
          circuitComponents.compoundButton(260, 260, { text: "正转启动" }),
          circuitComponents.compoundButton(260, 400, { text: "反转启动" }),
          circuitComponents.compoundButtonRed(260, 520),
          circuitComponents.motor(30, 690)
        ]
      },
      24: {
        name: "K2-3三相异步电动机正反运转线路接线",
        sampleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/54d5a994c19a2ad965ab206f13166edf",
        principleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/d6cddac1716ed6a24ec5490ff8af54b6",
        data: [
          circuitComponents.power3(75, 10),
          circuitComponents.asw3(86, 100),
          circuitComponents.asw2(220, 100),
          circuitComponents.fuse3(86, 240),
          circuitComponents.compoundButtonRed(250, 120),
          circuitComponents.compoundButton(250, 210, { text: "正转启动" }),
          circuitComponents.compoundButton(250, 310, { text: "反转启动" }),
          circuitComponents.ACContactor(40, 410),
          circuitComponents.ACContactor(150, 410),
          circuitComponents.asyncMotor(30, 600)
        ]
      },
      25: {
        name: "K2-4三相异步电动机正反运转线路接线",
        sampleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/ad2a7efc9c42dc2ae06cadadd16e736d",
        principleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/f0ee849b1f23d749779dcb19cce12782",
        data: [
          circuitComponents.power3(75, 10),
          circuitComponents.asw3(86, 100),
          circuitComponents.asw2(220, 100),
          circuitComponents.fuse3(86, 240),
          circuitComponents.compoundButtonRed(250, 120),
          circuitComponents.compoundButton(250, 210, { text: "正转启动" }),
          circuitComponents.compoundButton(250, 310, { text: "反转启动" }),
          circuitComponents.ACContactor(40, 410),
          circuitComponents.ACContactor(150, 410),
          circuitComponents.asyncMotor(30, 600)
        ]
      },
      26: {
        name: "K2-5带熔断器(断路器)、仪表、电流互感器的电动机运行控制电路接线",
        sampleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/d80b759d77a9aa32452f3478b11bf6e4",
        principleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/1d51bd71dcfe9bc6045910b36854ea40",
        data: [
          circuitComponents.power4(75, 10),
          circuitComponents.asw3(86, 100),
          circuitComponents.asw2(220, 100),
          circuitComponents.compoundButtonRed(250, 260),
          circuitComponents.compoundButton(250, 360),
          circuitComponents.compoundButton(250, 460),
          circuitComponents.ACContactorOpen2(86, 250),
          circuitComponents.ammeter(260, 470, { text: "电流表②" }),
          circuitComponents.currentTransformer(260, 580, { text: "互感器②" }),
          circuitComponents.thermalRelay(86, 450),
          circuitComponents.motor(30, 620)
        ]
      },
      27: {
        name: "K2-6带熔断器(断路器)、仪表、电流互感器的电动机运行控制电路接线",
        sampleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/d80b759d77a9aa32452f3478b11bf6e4",
        principleImage: "https://dpsystem.oss-cn-shenzhen.aliyuncs.com/moren1607659060/1d51bd71dcfe9bc6045910b36854ea40",
        data: [
          circuitComponents.power4(75, 10),
          circuitComponents.asw3(86, 100),
          circuitComponents.asw2(220, 100),
          circuitComponents.fuse3(86, 240),
          circuitComponents.compoundButtonRed(250, 260),
          circuitComponents.compoundButton(250, 360),
          circuitComponents.compoundButton(250, 460),
          circuitComponents.ACContactorOpen2(86, 250),
          circuitComponents.ammeter(260, 470, { text: "电流表②" }),
          circuitComponents.currentTransformer(260, 580, { text: "互感器②" }),
          circuitComponents.thermalRelay(86, 450),
          circuitComponents.motor(30, 620)
        ]
      }
  }

export { familyCircuits, industryCircuits, practical };
